package com.example.blog.mapper;

import com.example.blog.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description: userMapper
 * @author: chengbaiyi
 * @create: 2022-08-19 19:33
 */
@Mapper
public interface UserMapper {
    // 注册
    int reg(String username, String nickname, String password);
    // 登录名唯一性
    UserInfo sole(@Param("username")String username);

    // 根据uid获得作者昵称
    UserInfo getAuthor(Integer uid);
}
